from core import *
from models import *
from utils import *
from statistics import *
from func_obj import *
from gui import *
from methods import *

model_map={}
statistic_map={}
method_map={}

for i in models.__dict__:
    c=models.__dict__[i]
    if issubclass(type(c),type(object)):
        if issubclass(c,models.pymodel) and c!=models.pymodel:
            model_map[i]=c

models.model_map=model_map


for i in statistics.__dict__:
    c=statistics.__dict__[i]
    if issubclass(type(c),type(object)):
        if issubclass(c,statistics.pystatistic) and c!=statistics.pystatistic:
            statistic_map[i]=c


statistic_map["chisq"]=core.pychisq
statistic_map["cstat"]=core.pycstat


models.model_map=model_map
statistics.statistic_map=statistic_map

method_map["simplex"]=core.pygsl_simplex
method_map["powell"]=core.pypowell_method
method_map["aga"]=core.pyaga_method
methods.method_map=method_map
